source 'https://gems.ruby-china.org/'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.0'
# Use sqlite3 as the database for Active Record
gem 'pg'
# Use Puma as the app server
gem 'puma', '~> 3.0'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
#gem 'coffee-rails', '~> 4.2'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'

gem 'workflow', '1.2.0'
#breadcrumb
gem "gretel", '3.0.8'

# paginnation
gem 'will_paginate'#, '3.0.7'
gem 'kaminari'

#for auth
gem 'cancancan', '~> 1.15.0'

gem 'rails_autolink'
gem 'redcarpet'
gem 'rouge', '~> 1.8.0'
gem 'nokogiri', '1.7.1'
gem 'sanitize'

gem 'carrierwave'
gem 'carrierwave-qiniu', '~> 1.1.5'
gem 'carrierwave-mimetype-fu'
gem 'mini_magick'

gem "paranoia", "~> 2.2"

#memcached
gem 'dalli', '2.7.4'

#支付
gem 'pingpp'

gem 'enum_help'

#form and form validation
gem 'simple_form'
gem 'client_side_validations', github: 'TimLang/client_side_validations', branch: 'rails5'
gem 'client_side_validations-simple_form', github: 'DavyJonesLocker/client_side_validations-simple_form', branch: 'rails5'

gem 'china_city', github: '5mutian/china_city'

# YAML 配置信息
gem 'settingslogic', '~> 2.0.9'

gem 'mina', "0.3.7", require: false

#api
gem 'lina', github: 'TimLang/lina'

gem 'unicorn'
#这篇newrelic的文章解释很清楚： http://blog.newrelic.com/2013/05/28/unicorn-rawk-kick-gc-out-of-the-band/
#就是将GC延迟到用户请求完成以后，这样就会缩短响应时间，配合现成的gem unicorn-worker-killer 也不用担心内存爆掉。
gem 'unicorn-worker-killer'

gem 'active_model_serializers'

gem "omniauth-wechat-oauth2", github: 'yangsr/omniauth-wechat-oauth2'

#user auth
gem 'bcrypt'
gem 'simple_captcha2', require: 'simple_captcha'

gem 'ancestry'

gem 'acts-as-taggable-on', '~> 4.0'

gem 'ar-check'

#admin
gem 'bootstrap-sass'
gem 'font-awesome-rails'

gem "switch_user"

gem 'elasticsearch-model', github: 'elastic/elasticsearch-rails', branch: '5.x'
gem 'elasticsearch-rails', github: 'elastic/elasticsearch-rails', branch: '5.x'

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug', platform: :mri
  gem 'pry'
  gem 'pry-rails'
  gem 'pry-nav'
end

group :development do
  # generate model schema
  gem 'annotate'
  # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
  gem 'web-console'
  gem 'listen', '~> 3.0.5'
  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
  gem 'spring-watcher-listen', '~> 2.0.0'
  gem 'foreman'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem 'carrierwave-base64'
